package com.yidao.app.domain;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

public class AppContext {
	
	public static final String PROP_MENU = "__menu";
	
	private Map<String,Object> context = new HashMap<String,Object>();
	
	public Object getContextValue(String key){
		return context.get(key);
	}

	public void addConextProperty(String key, Object value){
		this.context.put(key, value);
	}

	public Map<String, Object> getContext() {
		return context;
	}

	public void setContext(Map<String, Object> context) {
		this.context = context;
	}
}
